<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::QpSolver&lt; Problem, SelectionStrategy &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_qp_solver.html">QpSolver</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_qp_solver-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::QpSolver&lt; Problem, SelectionStrategy &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Quadratic program solver.  
 <a href="classshark_1_1_qp_solver.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_qp_solver_8h_source.html">shark/Algorithms/QP/QpSolver.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae9572667955c34708e869e081542b018" id="r_ae9572667955c34708e869e081542b018"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_solver.html#ae9572667955c34708e869e081542b018">QpSolver</a> (Problem &amp;problem)</td></tr>
<tr class="separator:ae9572667955c34708e869e081542b018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef891551dc0bc92ab4571cb7d479706f" id="r_aef891551dc0bc92ab4571cb7d479706f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_solver.html#aef891551dc0bc92ab4571cb7d479706f">solve</a> (<a class="el" href="structshark_1_1_qp_stopping_condition.html">QpStoppingCondition</a> &amp;stop, <a class="el" href="structshark_1_1_qp_solution_properties.html">QpSolutionProperties</a> *prop=NULL)</td></tr>
<tr class="memdesc:aef891551dc0bc92ab4571cb7d479706f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solve the quadratic program.  <br /></td></tr>
<tr class="separator:aef891551dc0bc92ab4571cb7d479706f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:adb8ce16903004d00cc5fa08ae56c82a8" id="r_adb8ce16903004d00cc5fa08ae56c82a8"><td class="memItemLeft" align="right" valign="top">Problem &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_solver.html#adb8ce16903004d00cc5fa08ae56c82a8">m_problem</a></td></tr>
<tr class="separator:adb8ce16903004d00cc5fa08ae56c82a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class Problem, class SelectionStrategy = typename Problem::PreferedSelectionStrategy&gt;<br />
class shark::QpSolver&lt; Problem, SelectionStrategy &gt;</div><p>Quadratic program solver. </p>
<p>todo: new documentation </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00403">403</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae9572667955c34708e869e081542b018" name="ae9572667955c34708e869e081542b018"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9572667955c34708e869e081542b018">&#9670;&#160;</a></span>QpSolver()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Problem , class SelectionStrategy  = typename Problem::PreferedSelectionStrategy&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_qp_solver.html">shark::QpSolver</a>&lt; Problem, SelectionStrategy &gt;::QpSolver </td>
          <td>(</td>
          <td class="paramtype">Problem &amp;&#160;</td>
          <td class="paramname"><em>problem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00406">406</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aef891551dc0bc92ab4571cb7d479706f" name="aef891551dc0bc92ab4571cb7d479706f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef891551dc0bc92ab4571cb7d479706f">&#9670;&#160;</a></span>solve()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Problem , class SelectionStrategy  = typename Problem::PreferedSelectionStrategy&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_qp_solver.html">shark::QpSolver</a>&lt; Problem, SelectionStrategy &gt;::solve </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structshark_1_1_qp_stopping_condition.html">QpStoppingCondition</a> &amp;&#160;</td>
          <td class="paramname"><em>stop</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structshark_1_1_qp_solution_properties.html">QpSolutionProperties</a> *&#160;</td>
          <td class="paramname"><em>prop</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Solve the quadratic program. </p>
<p>The function iteratively refines the solution by applying the SMO (subset descent) algorithm until one of the stopping criteria is fulfilled. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00415">415</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_qp_solver.html#adb8ce16903004d00cc5fa08ae56c82a8">shark::QpSolver&lt; Problem, SelectionStrategy &gt;::m_problem</a>, <a class="el" href="structshark_1_1_qp_stopping_condition.html#af747ff263a208a610fc2ca4dccec44d6">shark::QpStoppingCondition::maxIterations</a>, <a class="el" href="structshark_1_1_qp_stopping_condition.html#a2f2037cc62c817ff88ec0801591a0240">shark::QpStoppingCondition::maxSeconds</a>, <a class="el" href="structshark_1_1_qp_stopping_condition.html#addc2ea7f6d15eb25187586e329f33ace">shark::QpStoppingCondition::minAccuracy</a>, <a class="el" href="classshark_1_1_timer.html#a4a3f88c6b69f2ed99176ee4c28057c6b">shark::Timer::now()</a>, <a class="el" href="namespaceshark.html#a2d5e9a415ae7e8dd41caf883e1873540a4b605bae89750d1c2bb1b3ef1a039639">shark::QpAccuracyReached</a>, <a class="el" href="namespaceshark.html#a2d5e9a415ae7e8dd41caf883e1873540a1f2d9c58ed6b0985decbfe573d66080d">shark::QpMaxIterationsReached</a>, and <a class="el" href="namespaceshark.html#a2d5e9a415ae7e8dd41caf883e1873540af0f960c500ba6a3c653c9f45efa6e92a">shark::QpTimeout</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_radius_margin_quotient.html#a72f6cfe0cc96c2f1551861af80323f47">shark::RadiusMarginQuotient&lt; InputType, CacheType &gt;::computeRadiusMargin()</a>, <a class="el" href="classshark_1_1_loo_error_c_svm.html#a7707d1eaf38cad24a585eb3f1bcc89d1">shark::LooErrorCSvm&lt; InputType, CacheType &gt;::eval()</a>, <a class="el" href="classshark_1_1_bias_solver.html#a94431a20658c032890cbb34fa0e0cba0">shark::BiasSolver&lt; Matrix &gt;::solve()</a>, <a class="el" href="classshark_1_1_bias_solver_simplex.html#a60479f4edcd9038d612da5c34d4e6022">shark::BiasSolverSimplex&lt; Matrix &gt;::solve()</a>, and <a class="el" href="classshark_1_1_one_class_svm_trainer.html#afee764d431c31a7cdf28306ab5c197f7">shark::OneClassSvmTrainer&lt; InputType, CacheType &gt;::trainSVM()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="adb8ce16903004d00cc5fa08ae56c82a8" name="adb8ce16903004d00cc5fa08ae56c82a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb8ce16903004d00cc5fa08ae56c82a8">&#9670;&#160;</a></span>m_problem</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Problem , class SelectionStrategy  = typename Problem::PreferedSelectionStrategy&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Problem&amp; <a class="el" href="classshark_1_1_qp_solver.html">shark::QpSolver</a>&lt; Problem, SelectionStrategy &gt;::m_problem</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00481">481</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_qp_solver.html#aef891551dc0bc92ab4571cb7d479706f">shark::QpSolver&lt; Problem, SelectionStrategy &gt;::solve()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/QP/<a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
